package com.tourism.core.cn.dto;
/*********************************************************************
 Copyright(c) 2024 All Rights Reserved .
 Author : liliang
 CreatedOn : 2024/12/27 21:24
 Email : 2061996582@qq.com
 Describe : TODO
 UseCase :
 Version : 2024|V1.0.0.0
 **********************************************************************/

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author new
 * @date 2024/12/27 21:24
 */
@Data
public class SendSmsDto {

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$",message = "手机号格式不正确")
    private String mobile;
}
